﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TMI85303.Utils
{
    public enum DataType
    {
        BIN,
        OCT,
        DEC,
        HEX
    }

    public enum Spd_Cl_En { OPENLOOP = 0, CLOSEDLOOP = 1 }
    public enum Cmd_Inv { NORMAL = 0, INVERT = 1 }
    public enum Dir50 { DISABLED = 0, ENABLE = 1 }
    public enum Start_En { DISABLED = 0, ENABLE = 1}
    public enum Brk_Mode1 { COAST = 0, BRAKE = 1 }


    public enum OcpAnalogDelay { _560ns = 0, _440ns = 1 }
    public enum OCLFilter { _480_520ns = 0, _640_680ns = 1 }
    public enum OCL { Enabled = 0, Disabled = 1 }
    public enum NegErr_PosErr { Enabled = 0, Disabled = 1 }
    public enum OcpThrSel { LOW = 0, HIGH = 1 }
    public enum OclBlank { _0_4us = 0, _0_72us = 1 ,_1_04us = 2, OCPDisabled = 3}
    public enum OpenLoopVbbComp { Enabled = 0, Disabled = 1 }
    public enum Deadtime { _360ns = 0, _480ns = 1 }



    public enum SpdSel { PWM_DUTY = 0, ANALOG =1 }
    public enum DtyFreq { LOWFRED = 0, HIGHFRED = 1 }
    public enum VbbovDis {  ENABLE = 0 , DISABLE = 1}
    public enum Vbbov { _19V = 0, _38V = 1 }
    public enum OvpOpt { DISABLE = 0, LOCK_DETECT = 1 }
    public enum Vbbuvlo { LOW = 0, HIGH = 1 }



    public enum StbyDis { DISABLE = 1, ENABLE = 0}
    public enum PwmSel { _24_5KHZ = 0, _24_5_49KHZ = 1 }
    public enum EnTcomp { DISABLE = 0, ENABLE = 1 }
    public enum BrkMode2 { RESY = 0, BRAKE = 1 }
    public enum PigainSel { _1X = 0, _2X = 1 }
    public enum InitWindow { _21DEG = 1, _28DEG = 0 }
    public enum OcpOpt { RESTAFTERTLOCK = 0, AFTERPWM_ON_OFF = 1 }
    public enum SlewSel { _100NS = 0, _150NS = 1 }
    public enum TDith { _1_3 = 0, _2_6 = 1, _5_2 = 2, _10_4 = 3 }
    public enum StpDith { _8 = 0, _16 = 1, _24 = 2, _32 = 3 }
    public enum DithEn { DISABLE = 0, ENABLE = 1 }



    public enum VBB_RNG { V_19 = 0, V_38 = 1 }
    public enum StartMode { ALIGN = 0, ONE_CYCLE = 1, IPD_MODE1 = 2, IPD_MODE2 = 3 }
    public enum DecaySel { SLOW = 0, FAST = 1 }
    public enum TPostCoast { _500MS = 0, _100MS = 1 }
    public enum DirOrder { A_C_B = 0, A_B_C = 1 }
    public enum TAlign { _500MS = 0, _1S = 1, _1_5S = 2, _2S = 3 }


}
